git-checkout.sh: use "mkdir -p"
authorWei Liu <wei.liu2@citrix.com>
Sun, 25 Jan 2015 16:30:21 +0000 (16:30 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 27 Feb 2015 16:00:32 +0000 (16:00 +0000)
Otherwise mkdir extras/mini-os fails because extras doesn't exist.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
scripts/git-checkout.sh

index 15b3ce96619aaf561db80b99ab5a822856d2430b..20ae31ff236ddb3f977afb7f03a7458ffd1ecfdf 100755 (executable)
@@ -13,7 +13,7 @@ set -e
 
 if test \! -d $DIR-remote; then
        rm -rf $DIR-remote $DIR-remote.tmp
-       mkdir $DIR-remote.tmp; rmdir $DIR-remote.tmp
+       mkdir -p $DIR-remote.tmp; rmdir $DIR-remote.tmp
        $GIT clone $TREE $DIR-remote.tmp
        if test "$TAG" ; then
                cd $DIR-remote.tmp